#ifndef TABBAR_H
#define TABBAR_H

#include <QTabBar>

class TabBar : public QTabBar
{
    Q_OBJECT
public:
    explicit TabBar (QWidget *parent = 0);

protected:
    void mouseDoubleClickEvent (QMouseEvent *event);
    void mousePressEvent (QMouseEvent *event);

signals:
    void addTabRequested();
    void doubleClicked();
};

#endif // TABBAR_H
